namespace Skymate.Services.Dtos.Pages
{
    using System.Collections.Generic;

    public class PageResultOutputDto<T> : IOutputDto
    {
        public int TotalRecords { get;private set; }

        public IEnumerable<T> Data { get;private set; }

        public PageResultOutputDto(int total,IEnumerable<T> source)
        {
            this.TotalRecords = total;
            this.Data = source;
        }

    }
}